package com.hibikiluler.javalearning.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**

 *
 * @author
 * @createTime 2021年06月14日 18:42:00
 */
@Data
public class Book {

    @ExcelIgnore
    @ApiModelProperty("主键")
    private Long id;

    @Excel(name = "书籍名称")
    @ApiModelProperty("书籍名称")
    private String title;

    @Excel(name = "书籍类别")
    @ApiModelProperty("书籍类别")
    private Long typeId;

    @ApiModelProperty("书籍封面")
    @Excel(name = "书籍封面", type = 2)
    private String imageUrls;

    @Excel(name = "作者")
    @ApiModelProperty("作者")
    private String writer;

    @Excel(name = "出版社")
    @ApiModelProperty("出版社")
    private String copyright;

    @Excel(name = "价格")
    @ApiModelProperty("价格")
    private Float price;

    @Excel(name = "ISBN")
    @ApiModelProperty("ISBN")
    private String ISBN;

    @Excel(name = "description")
    @ApiModelProperty("description")
    private String description;

    @Excel(name = "recsell")
    @ApiModelProperty("recsell")
    private Long recsell;

    @Excel(name = "allsell")
    @ApiModelProperty("allsell")
    private Long allsell;

    @Excel(name = "pages")
    @ApiModelProperty("pages")
    private Long pages;

    @Excel(name = "research")
    @ApiModelProperty("research")
    private Long research;

    @Excel(name = "student")
    @ApiModelProperty("student")
    private Long student;

    @Excel(name = "adult")
    @ApiModelProperty("adult")
    private Long adult;

    @Excel(name = "etc")
    @ApiModelProperty("etc")
    private Long etc;

    @Excel(name = "worker")
    @ApiModelProperty("worker")
    private Long worker;

    @JsonIgnore
    @Excel(name = "书籍类别")
    private String typeTitle;

}

